package com.zhangfb95.crosschain.console.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @author zhangfubing
 * @since 2023/12/22
 */
@AllArgsConstructor
@Getter
public enum KeyStoreTypeEnum {

    BASE64("base64"),
    FILE("file"),
    ;

    private final String code;

    public boolean is(String code) {
        return Objects.equals(this.code, code);
    }
}
